<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xml:lang="{{=T.accepted_language or 'en'}}">
  <head>
      <title>{{=response.title or 'response.title'}}</title>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <meta name="copyright" content="{{=response.copyright or ''}}" />
      <meta name="keywords" content="{{=response.keywords or ''}}" />
      <meta name="description" content="{{=response.description or ''}}" />
      <meta name="robots" content="index,follow" />
      {{include 'web2py_ajax.html'}}
      <link rel="stylesheet" media="screen,projection" type="text/css" 
            href="{{=URL(request.application,'static','base.css')}}" />
  </head>
  <body>
    <div class="wrapper">
      <table class="layout">
        <tr>
          <td colspan="2"  class="header">
            <img heigth="30%" width="30%" align="rigth" src="/Mestre/static/logo.gif"/>
            <!--<h1>
            {{title=response.title or 'response.title'}}            
            {{=A(title, _href=URL(request.application,'default','index'))}}
            </h1>            
            <h3>{{=response.subtitle or 'response.subtitle'}}</h3>-->
          </td>
        </tr>
        <tr>
          <td colspan="2" class="statusbar">
            {{='/'.join(['',request.application,request.controller,request.function]+request.args)}}
          </td>
        </tr>
        <tr>
          <td class="width10em column1">
            {{if response.menu_auth:}}
            <h2>Autenticação</h2>
            {{=MENU(response.menu_auth)}}
            {{pass}}
            {{if response.menu:}}
            <h2>Menu</h2>
            {{=MENU(response.menu)}}
            {{pass}}
            {{if not auth.user:}}
            <a href="{{=URL(r=request,f='../default/user/login')}}">Logar</a>
            {{else:}}
            {{=auth.user.first_name}} |
            <a href="{{=URL(r=request,f='../default/user/logout')}}">Deslogar</a> |
            <a href="{{=URL(r=request,f='../default/user/change_password')}}">Senha</a> |
            <a href="{{=URL(r=request,f='../default/user/profile')}}">Alterar Perfil</a>
            {{pass}} 
            <br />
          </td>
          <td class="expandable column2">
            <div class="flash">{{=response.flash or ''}}</div>
            {{include}}
          </td>
          <!--
               <td class="width10em column3">
                 <h2>Right Column</h2>
               </td>
          //-->
        </tr>
        <tr>
          <td colspan="10" class="footer">
            <p>
            Site de Estudo desenvolvido por: José Roberto, Vagton Alves Ferreira. Todos os direitos reservados.
            </p>
          </td>
        </tr>
      </table>
    </div>
  </body>
</html>
